package net.yondervision.hrfsp.sdk.esign.domain.request;

import cn.hutool.http.Method;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.yondervision.hrfsp.sdk.esign.domain.AbstractESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.ESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.request.body.IdentityAuthPubOrganizationTransferRandomAmountParamBody;
import net.yondervision.hrfsp.sdk.esign.domain.request.path.IdentityAuthPubOrganizationTransferRandomAmountParamPath;
import net.yondervision.hrfsp.sdk.esign.domain.response.IdentityAuthPubOrganizationTransferRandomAmountResponse;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/10/08 13:46
 */
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class IdentityAuthPubOrganizationTransferRandomAmountRequest extends
    AbstractESignRequest implements
    ESignRequest<IdentityAuthPubOrganizationTransferRandomAmountResponse> {

  private IdentityAuthPubOrganizationTransferRandomAmountParamPath identityAuthPubOrganizationTransferRandomAmountParamPath;
  private IdentityAuthPubOrganizationTransferRandomAmountParamBody identityAuthPubOrganizationTransferRandomAmountParamBody;

  public IdentityAuthPubOrganizationTransferRandomAmountRequest(
      IdentityAuthPubOrganizationTransferRandomAmountParamPath identityAuthPubOrganizationTransferRandomAmountParamPath,
      IdentityAuthPubOrganizationTransferRandomAmountParamBody identityAuthPubOrganizationTransferRandomAmountParamBody) {
    this.identityAuthPubOrganizationTransferRandomAmountParamPath = identityAuthPubOrganizationTransferRandomAmountParamPath;
    this.identityAuthPubOrganizationTransferRandomAmountParamBody = identityAuthPubOrganizationTransferRandomAmountParamBody;
    this.setParamPath(identityAuthPubOrganizationTransferRandomAmountParamPath);
    this.setParamBody(identityAuthPubOrganizationTransferRandomAmountParamBody);
  }

  @Override
  public String getVersion() {
    return "v2";
  }

  @Override
  public String getUrl() {
    return "/identity/auth/pub/organization/{flowId}/transferRandomAmount";
  }

  @Override
  public Method getMethodType() {
    return Method.PUT;
  }

  @Override
  public Class<IdentityAuthPubOrganizationTransferRandomAmountResponse> getResponseClass() {
    return IdentityAuthPubOrganizationTransferRandomAmountResponse.class;
  }

}
